# Example of how to run the RESTful DDS service.
if [ -z "$1" ]
then
    WWWROOTURI="file://$PWD/www"
else
    WWWROOTURI="$1"
    shift
fi

# RESTfulDDS jar
CP=lib/org.opensplice.restful.service.jar

# External jars
# Fill variables so they point to external jar files
source ./externals.sh
CP=$CP:"$DDS_JAR":$GSON_JAR:$RESTLET_IMPL_JAR:$RESTLET_INTF_JAR

# Userdefined jars
until [ -z "$1" ]
do
  CP=$CP:$1
  shift
done

xterm -e java -cp $CP org.opensplice.restful.service.RESTfulDDSMain "$WWWROOTURI" &
